Skip to content

Conversation

thatfiredev
Copy link
Member

Adds new FinishReason enum values for various image generation scenarios to provide more granular information when a generation request finishes.

Also introduces a new ImageConfig interface and a corresponding AspectRatio enum. This allows specifying image-related configurations, like aspect ratio, within the main GenerationConfig.

Adds new `FinishReason` enum values for various image generation scenarios to provide more granular information when a generation request finishes.

Also introduces a new `ImageConfig` interface and a corresponding `AspectRatio` enum. This allows specifying image-related configurations, like aspect ratio, within the main `GenerationConfig`.
Copy link

changeset-bot bot commented Oct 2, 2025

⚠️ No Changeset found

Latest commit: 8c14c71

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

Size Report 1

Affected Products

  • @firebase/ai

    TypeBase (ccbf7ba)Merge (9c59191)Diff
    browser63.3 kB63.7 kB+393 B (+0.6%)
    main67.1 kB67.5 kB+462 B (+0.7%)
    module63.3 kB63.7 kB+393 B (+0.6%)
  • firebase

    TypeBase (ccbf7ba)Merge (9c59191)Diff
    firebase-ai.js49.9 kB50.3 kB+382 B (+0.8%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/KsdvaS1lq1.html

@google-oss-bot
Copy link
Contributor

Size Analysis Report 1

Affected Products

  • @firebase/ai

    • AspectRatio

      Size

      TypeBase (ccbf7ba)Merge (9c59191)Diff
      size?6.79 kB? (?)
      size-with-ext-deps?24.4 kB? (?)

      Dependency

      TypeBase (ccbf7ba)Merge (9c59191)Diff
      functions?

      chromeAdapterFactory
      decodeInstanceIdentifier
      factory
      registerAI

      ?
      classes?

      AIError
      AIService
      Backend
      ChromeAdapterImpl
      GoogleAIBackend
      VertexAIBackend

      ?
      variables?

      11 dependencies

      AIErrorCode
      AI_TYPE
      AspectRatio
      Availability
      BackendType
      DEFAULT_LOCATION
      InferenceMode
      Task
      logger
      name
      version

      ?
      enums??

      External Dependency

      ModuleBase (ccbf7ba)Merge (9c59191)Diff
      @firebase/app?

      _registerComponent
      registerVersion

      ?
      @firebase/component?

      Component

      ?
      @firebase/logger?

      Logger

      ?
      @firebase/util?

      FirebaseError

      ?
    • ChatSession

      Size

      TypeBase (ccbf7ba)Merge (9c59191)Diff
      size21.7 kB21.8 kB+162 B (+0.7%)
      size-with-ext-deps39.4 kB39.5 kB+162 B (+0.4%)
    • FinishReason

      Size

      TypeBase (ccbf7ba)Merge (9c59191)Diff
      size6.83 kB6.99 kB+162 B (+2.4%)
      size-with-ext-deps24.4 kB24.6 kB+162 B (+0.7%)
    • GenerativeModel

      Size

      TypeBase (ccbf7ba)Merge (9c59191)Diff
      size25.4 kB25.5 kB+162 B (+0.6%)
      size-with-ext-deps43.2 kB43.3 kB+162 B (+0.4%)
    • getGenerativeModel

      Size

      TypeBase (ccbf7ba)Merge (9c59191)Diff
      size25.7 kB25.9 kB+162 B (+0.6%)
      size-with-ext-deps43.5 kB43.7 kB+162 B (+0.4%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/gjyyTMyhUT.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants